package com.wanmait.employment.manageController;


import com.github.pagehelper.PageInfo;
import com.wanmait.employment.entity.JobExperience;
import com.wanmait.employment.service.JobExperienceService;
import com.wanmait.employment.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/manage/JobExperience")
public class JobExperienceController {
    @Resource
    private JobExperienceService jobExperienceService;

    @GetMapping("list")
    public AjaxResult List(String title, int pageNum, int pageSize){
        PageInfo<JobExperience> jobExperiencePageInfo=jobExperienceService.selectList(title,pageNum,pageSize);
        return AjaxResult.success("",jobExperiencePageInfo);
    }
    @GetMapping("delete")
    public AjaxResult delete(Integer id){
        jobExperienceService.delete(id);
        return AjaxResult.success();
    }

}
